<div class="ismPanel">
		<h2 class="ismSection3">Player Filters</h2>
		<form class="ismForm ismFormSmall" method="get" action="#">
			<ul class="ismList ismFilterList">
				<li>
					<label id='ismElementFilterLabel' for="ismElementFilter">View</label>
					<select class="ismIndentLeft" onchange='updateFilterList(this.value);' name="selection_filters_form-view" id="ismElementFilter">
						<option value="AllPlayers" class="ismOptionMisc">All players</option>
						<option value="Goalkeeper" class="ismOptionType">Goalkeepers</option>
						<option value="Defender" class="ismOptionType">Defenders</option>
						<option value="Midfielder" class="ismOptionType">Midfielders</option>
						<option value="Striker" class="ismOptionType">Strikers</option>
						<?php 
							$dbconnect = DBconnect::getInstance(); 
							$query = $dbconnect->getAllRealTeams();
							while ($teams = mysql_fetch_assoc($query)){
								$teamno = $teams['rteam_no'];
								settype($teamno, "int");
								$teamName = $teams['team_name'];
								echo "<option value='$teamno' class='ismOptionTeam'>$teamName</option>";
							}
						?>	
					</select>
				</li>
			</ul>
		</form>
	</div>